<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'login.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
		<s:form action="find" method="post" theme="simple">
		<table border="1" width="1000" cellspacing=1 class="font1">
		
		<tr bgcolor="#E9EDF5">
		<td width="250">内容选择</td>
		<td width="250">已借图书</td>
		<td width="250">学生信息</td>
		<td width="250">所有图书</td>
		</tr>
		
		
		<tr>
		<td align="left" valign="top" height="400">
		<br>借书证号:<br>
		<s:textfield name="test" size="15"></s:textfield>
		<s:submit value="查询"></s:submit><br><br>
		</s:form>
		<s:form action="lendbook" method="post" theme="simple">
		
		学生借书证号:<br>
			<s:textfield name="test" size="15"></s:textfield><br>
		要借图书ID:<br>
			<s:textfield name="bookid" size="15"></s:textfield>
			<s:submit value="借书"></s:submit>
		</s:form>
		
		<s:form action="huangxx" method="post" theme="simple">
		
		学生借书证号:<br>
			<s:textfield name="test" size="15"></s:textfield><br>
		还书ID:<br>
			<s:textfield name="lendid" size="15"></s:textfield>
			<s:submit value="还书"></s:submit>
		</s:form>
		
		</td>
		
		<td align="left" valign="top">
			 <s:iterator value="#request.list" id="lend" status="indexValue">
 	         		第<s:property value="#indexValue.index+1"/>本: <s:property value="#lend[5]"/>(书名)
 	         		<s:property value="#lend[6]"/>(还书ID)<br> 
 	         </s:iterator>
       </td>
       
       <td align="left" valign="top">
                                           借书证号：<s:property value="#lend[0]"/><br>
       		 姓名：<s:property value="#lend[1]"/><br>
       		 专业：<s:property value="#lend[2]"/><br>
       		 性别：<s:property value="#lend[3]"/><br>
       		 生日：<s:property value="#lend[4]"/><br>
       </td>
       
        <td align="left" valign="top">
            <s:iterator value="#request.listbook" id="listbook" status="indexValue">
 	         		库存第<s:property value="#indexValue.index+1"/>本: <s:property value="#listbook[0]"/>(bookid)
 	         		<s:property value="#listbook[1]"/>(书名)<br> 
 	         </s:iterator>
       </td>
       
		</tr>
		
		</table>

  </body>
</html>
